package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type UserCheckinHistory struct {
	Id          int       `json:"id" gorm:"pk"`
	Uid         int       `json:"uid"`
	OrdNum      int       `json:"ord_num"`
	RewardDesc  string    `json:"reward_desc"`
	CheckinTime time.Time `json:"checkin_time"`
}

func (UserCheckinHistory) TableName() string {
	return fmt.Sprintf("%suser_checkin_history", models.Prefix)
}
